package com.neuedu.spring.mybatis.po;

import java.io.Serializable;
import java.util.Date;

/**
 * 菜单表（权限）
 * @TableName ums_menu
 */
public class UmsMenu implements Serializable {
    /**
     * 菜单ID
     */
    private Long menuId;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 前端菜单路径
     */
    private String url;

    /**
     * 前端vue-router路径
     */
    private String path;

    /**
     * 菜单的级别
     */
    private Integer level;

    /**
     * 上级ID
     */
    private Long parentId;

    /**
     * 是否显示，0 显示，1 不显示
     */
    private Integer show;

    /**
     * 是否有效
     */
    private String del;

    /**
     * 创建时间
     */
    private Date createtime;

    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
    public Long getMenuId() {
        return menuId;
    }

    /**
     * 菜单ID
     */
    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    /**
     * 菜单名称
     */
    public String getMenuName() {
        return menuName;
    }

    /**
     * 菜单名称
     */
    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    /**
     * 前端菜单路径
     */
    public String getUrl() {
        return url;
    }

    /**
     * 前端菜单路径
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 前端vue-router路径
     */
    public String getPath() {
        return path;
    }

    /**
     * 前端vue-router路径
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * 菜单的级别
     */
    public Integer getLevel() {
        return level;
    }

    /**
     * 菜单的级别
     */
    public void setLevel(Integer level) {
        this.level = level;
    }

    /**
     * 上级ID
     */
    public Long getParentId() {
        return parentId;
    }

    /**
     * 上级ID
     */
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    /**
     * 是否显示，0 显示，1 不显示
     */
    public Integer getShow() {
        return show;
    }

    /**
     * 是否显示，0 显示，1 不显示
     */
    public void setShow(Integer show) {
        this.show = show;
    }

    /**
     * 是否有效
     */
    public String getDel() {
        return del;
    }

    /**
     * 是否有效
     */
    public void setDel(String del) {
        this.del = del;
    }

    /**
     * 创建时间
     */
    public Date getCreatetime() {
        return createtime;
    }

    /**
     * 创建时间
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UmsMenu other = (UmsMenu) that;
        return (this.getMenuId() == null ? other.getMenuId() == null : this.getMenuId().equals(other.getMenuId()))
            && (this.getMenuName() == null ? other.getMenuName() == null : this.getMenuName().equals(other.getMenuName()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getPath() == null ? other.getPath() == null : this.getPath().equals(other.getPath()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
            && (this.getShow() == null ? other.getShow() == null : this.getShow().equals(other.getShow()))
            && (this.getDel() == null ? other.getDel() == null : this.getDel().equals(other.getDel()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMenuId() == null) ? 0 : getMenuId().hashCode());
        result = prime * result + ((getMenuName() == null) ? 0 : getMenuName().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getPath() == null) ? 0 : getPath().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        result = prime * result + ((getShow() == null) ? 0 : getShow().hashCode());
        result = prime * result + ((getDel() == null) ? 0 : getDel().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", menuId=").append(menuId);
        sb.append(", menuName=").append(menuName);
        sb.append(", url=").append(url);
        sb.append(", path=").append(path);
        sb.append(", level=").append(level);
        sb.append(", parentId=").append(parentId);
        sb.append(", show=").append(show);
        sb.append(", del=").append(del);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}